@import './common';
@import './contract';

.custom-dropdown {
	.ant-dropdown-menu-item:hover {
		color: @primary-color;
	}
}

.ant-descriptions-item .ant-descriptions-item-label {
	color: @text-color-secondary;
}

.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
	color: @primary-color;
}

.ant-dropdown .ant-dropdown-menu-item:hover {
	color: @primary-color;
}

.ant-typography blockquote {
	opacity: 1;
	line-height: 16px;
	border-left: 2px solid @primary-color !important;
}

.ant-table {
	border-radius: 0 !important;

	&:not(.ant-table-bordered) {
		border: 1px solid @border-color-light;
	}

	.ant-table-container {
		.ant-table-tbody > .ant-table-row > .ant-table-cell {
			max-height: 52px;
			font-size: small;
		}

		.ant-table-tbody > tr:last-child:not(:nth-child(2)) > td {
			//border-bottom: none;
		}

		.ant-table-tbody > tr.ant-table-row > td {
			border-top: 1px solid transparent;
			border-bottom: 1px solid @border-color-light;

			&:first-child {
				border-left: 1px solid transparent;
			}

			&:last-child {
				border-right: 1px solid transparent;
			}
		}

		.ant-table-tbody > tr.ant-table-row:hover {
			box-shadow: 0px 4px 8px 0px rgba(2, 102, 255, 0.1);

			td {
				border-top: 1px solid @primary-color;
				border-bottom: 1px solid @primary-color;

				&:first-child {
					border-left: 1px solid @primary-color;
				}

				&:last-child {
					border-right: 1px solid @primary-color;
				}
			}
		}
	}
}

.ant-modal {
	.ant-modal-header {
		background: #f5f7fa;

		.ant-modal-title {
			color: @primary-color;
		}
	}

	.ant-modal-body > .ant-tabs > .ant-tabs-nav {
		background: #f5f7fa;
		border-radius: 2px 2px 0 0;
	}
}

.ant-drawer {
	.ant-drawer-header {
		padding: 16px;
		background: #f5f7fa;

		.ant-drawer-header-title {
			flex-direction: row-reverse;

			.ant-drawer-close {
				padding: 0;
			}
		}

		.ant-drawer-title {
			color: @primary-color;
		}

		.ant-drawer-close {
			margin-right: 0;
		}
	}

	.ant-drawer-footer {
		text-align: right;
	}
}

.ant-form-item {
	.ant-picker,
	.ant-select,
	.ant-input-number {
		width: 100%;
	}
}

.ant-btn-sm {
	font-size: @font-size-sm;
}

.ant-divider-vertical {
	margin: 0 12px;
}

.ant-space {
	flex-wrap: wrap;
}

.ant-tooltip {
	max-width: 40vw;
}